﻿@model Model.goodComment

@{
    ViewBag.Title = "商品评论";
}

@using (Html.BeginForm("SendReply", "Store", FormMethod.Post, new { @class = "PostSendForm", enctype = "multipart/form-data" }))
{
    @Html.AntiForgeryToken()

    <div class="form-horizontal">
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        @Html.HiddenFor(model => model.userID)
        @Html.HiddenFor(model => model.goodId)
        @Html.HiddenFor(model => model.oDId)
        <div class="form-group1">
            评分 @Html.EditorFor(model => model.grade, new { htmlAttributes = new { @class = "form-control", min = 1, max = 5, @Value = 5 } })
            @Html.ValidationMessageFor(model => model.grade, "", new { @class = "text-danger" })
        </div>

        <div class="form-group">
            <div class="col-md-10">
                @Html.TextAreaFor(model => model.Comment, new { htmlAttributes = new { @class = "form-control", id = "Comment" } })
                @Html.ValidationMessageFor(model => model.Comment, "", new { @class = "text-danger" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="评论" class="btn btn-default" />
            </div>
        </div>
    </div>
}
@section css{
    <style>
        body {
            background: url(../../Content/images/header-bg_csgo.jpg) no-repeat;
        }
        .form-horizontal {
            width: 960px;
        }
        .form-group1 {
            width:150px;
            margin-top:30px;
            margin-left:0;
            margin-bottom: 30px;
        }
        .form-group1 input{
            text-align:center;
            border-radius:4px;
            width:80px;
            height:20px;
        }
        .btn {
            cursor:pointer;
            float: right;
            width: 80px;
            height: 30px;
            background: rgb(44,49,55);
            color:#fff;
            margin-top:30px;
            margin-bottom:30px;
            border:0px;
            border-radius:4px;
        }
    </style>
    }
@section scripts{
    <script src="~/Scripts/ckeditor/ckeditor.js"></script>
    <script src="~/Scripts/ckeditor/config.js"></script>
    <script>
        var editor = CKEDITOR.replace('Comment');
    </script>
}
